package com.pattern.factory.innercalss;

public class ServiceImpl1 implements Service {

public ServiceImpl1(){
}


    @Override
    public void method1() {
        System.out.println("ServiceImpl1:method1");
    }

    @Override
    public void method2() {
        System.out.println("ServiceImpl1:method2");
    }



    public  static  ServiceFactory serviceFactory=new ServiceFactory() {
        @Override
        public Service getServer() {
            return new ServiceImpl1();
        }
    };
}
